<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    img {
      width: 200px;
      display: block;
      margin:  100px auto;
    }
  </style>
</head>
<body>
  <img src="https://img.alicdn.com/tfs/TB18W1cQFXXXXaWXXXXXXXXXXXX-160-160.png" alt="">

  <script>
    var img = document.querySelector('img')

    img.onclick = function() {
      this.style.display = 'none'
    }
  </script>
</body>
</html>